﻿<div id = "edit" style = "display:none;" class="main-tabs clearfix">
	<form method = "post" action = "article.php?id=<?= $_GET['id'] ?>" enctype="multipart/form-data" class="form-horizontal">
		<div class="form-group">
			<label for = "comment_allowed" class="col-xs-3 control-label">Commentaires pour l'article</label>
			<div class="col-xs-9 checkbox">
				<label for="comment_allowed">
					<input type = "checkbox" name = "comment_allowed" id = "comment_allowed" value = "True" <?php if($row['commentAllowed']){echo ('checked');} ?> /> Autorisé
				</label>
			</div>
		</div>
		<div class="form-group">
			
			<label for="image" class="col-xs-3 control-label">Aperçu de l'image :</label>
			<div class="col-xs-9 checkbox">
				<img src="<?= imgLink($row['link']) ?>" class="thumbnail" height="300px" />
			</div>
		</div>
		<div class="form-group">
			
			<label for="image" class="col-xs-3 control-label">Image de l'article :<br /><small> (inférieur à 5 Mio)</small></label>
			<div class="col-xs-9 checkbox">
				<input type="file" name="articleImg" id = "image"/>
			</div>
		</div>
		
		
		
		<textarea class="col-xs-12 textEdit" id = "textEdit" name="content" rows="10" cols="80"> <?= $row["content"] ?> </textarea>
		
		<button type = "submit" name = "edit" class="btn btn-primary btn-lg btn-block" >Valider</button>
	</form>
</div>